<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="sidebar">
	<ul>
		<li>
			<h2>My subscriptions (${reader.numSubs})</h2>
			<ul>
				<c:choose>
					<c:when test="${reader.numSubs == '0'}" >
						<li>
							<p>You don't have any subscriptions yet</p>
						</li>
					</c:when>
					<c:otherwise>
						<c:forEach var="subscription" items="${reader.subscriptions}">
							<li>
								<p>
									${subscription.topic}
									<!-- only when there are tags -->
									<!--<c:if test="${subscription.msgSelector != ''}">
										: ${subscription.msgSelector}
									</c:if>-->
								</p>
							</li>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</ul>
		</li>
		<li>
			<h2>My news (${reader.numMsgs})</h2>
			<ul>
				<!-- <li>
					<p>Should I put something here?</p>
				</li> -->
			</ul>
		</li>
	</ul>
</div>